const setStoreWithLS = (state, arrayLikeObj) => {
    for (const key in arrayLikeObj) {
        if (arrayLikeObj.hasOwnProperty(key)) {
            localStorage[key] = state[key] = arrayLikeObj[key]
        }
    }
}

export default setStoreWithLS
